@extends('admin.layout.homeindex')
@section('content')
<!--//////////////////////////////////////////////////-->
<!--///////////////////  个人资料页  ///////////////////-->
<!--//////////////////////////////////////////////////-->
<div id="page-content" class="single-page">
	<div class="container">
		<div class="row">
			<div class="col-lg-12">
				<ol class="breadcrumb">
				  <li><a href="{{url('/homeuser/homeuser')}}">个人中心</a></li>
				  <li><a href="{{url('/homeuser/homeuserdata')}}">个人资料</a></li>
				  <li><a href="{{url('/homeuser/homeuserpass')}}">修改密码</a></li>
				  <li><a href="{{url('/homeuser/homeuseraddress')}}">地址管理</a></li>
				  <li><a href="">我的收藏</a></li>
				  <li><a href="{{url('/cart/index')}}">购物车</a></li>
				  <li><a href="">我的订单</a></li>
				</ol>
			</div>
		</div>
		<!-- 个人资料 -->
		<div class="row">
			<div class="col-lg-12">
				<div class="heading"><h5>修改资料</h5></div>
				@if(session('error'))
                <div class="alert alert-danger alert-dismissable col-md-6 col-md-offset-3">
                    <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                    {{session('error')}}
                </div>
            	@endif
			</div>
			<div class="col-md-6" style="margin-bottom: 30px;">
				<form name="form1" id="ff" method="post" action="/homeuser/doedit" enctype="multipart/form-data">
					<div class="form-group">
						<input type="text" value="{{$users->uname}}" class="form-control" placeholder="用户名 *" name="uname" id="name" required data-validation-required-message="Please enter your name.">
					</div>
					<div class="form-group">
					性别：<input type="radio" name="sex" value="1" required data-validation-required-message="Please enter your email address.">男&nbsp;&nbsp;&nbsp;
						<input type="radio" name="sex" value="2" required data-validation-required-message="Please enter your email address.">女
					</div>
					<div class="form-group">
						<input type="tel" value="{{$users->phone}}" class="form-control" placeholder="手机号码 *" name="phone" id="phone" required data-validation-required-message="Please enter your phone number.">
					</div>
					<div class="form-group">
                        <label>头像</label>
                        <img src="{{$users->pic}}" width="70px">
                        <input type="file" name="pic">
                    </div>
					{{csrf_field()}}
					<button type="submit" class="btn btn-1">修改</button>
				</form>
			</div>
		</div>
	</div>
</div>

@endsection('content')
